﻿namespace SBlogCore.AuthorizeServe.Dtos
{
    public class ApplicationsManagerInPut
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="clientId">客户端ID</param>
        /// <param name="displayName">隐藏名称</param>
        /// <param name="redirectUris">授权回调地址</param>
        /// <param name="postLogoutRedirectUris">登出回调地址</param>
        public ApplicationsManagerInPut(string clientId, string displayName, string redirectUris, string postLogoutRedirectUris)
        {
            ClientId = clientId;
            DisplayName = displayName;
            RedirectUris = redirectUris;
            PostLogoutRedirectUris = postLogoutRedirectUris;
        }
        /// <summary>
        /// 
        /// </summary>
        public string? Id { get; set; }
        /// <summary>
        /// 客户端ID
        /// </summary>
        /// mvc3
        public string ClientId { get; set; }
        /// <summary>
        /// 隐藏名称
        /// </summary>
        /// MVC client application
        public string DisplayName { get; set; }
        /// <summary>
        /// 授权回调地址
        /// </summary>
        /// https://localhost:44338/callback/login/local
        public string RedirectUris { get; set; }
        /// <summary>
        /// 登出回调地址
        /// </summary>
        /// https://localhost:44338/callback/login/local
        public string PostLogoutRedirectUris { get; set; }

        public List<string> Scopes { get; set; } = new();
    }
}
